package com.jiyun.twostudio.controller;

import com.apis.studio.CommentRepayControllerApi;
import com.jiyun.twostudio.service.StudioService;
import com.usian.model.comment.CommentRepayDto;
import com.usian.model.comment.CommentRepayLikeDto;
import com.usian.model.comment.CommentRepaySaveDto;
import com.usian.model.common.dtos.ResponseResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

public class StudioV2Controller  implements CommentRepayControllerApi {



    @Autowired
    StudioService studioService;

    @PostMapping("loadCommentRepay")
    @Override
    public ResponseResult loadCommentRepay(@RequestBody CommentRepayDto dto) {
        return studioService.loadCommentRepay(dto);

    }

    @PostMapping("saveCommentRepay")
    @Override
    public ResponseResult saveCommentRepay(@RequestBody CommentRepaySaveDto dto) {
        return studioService.saveCommentRepay(dto);
    }

    @PostMapping("saveCommentRepayLike")
    @Override
    public ResponseResult saveCommentRepayLike(@RequestBody CommentRepayLikeDto dto) {
        return studioService.saveCommentRepayLike(dto);
    }
}
